/**
 * Created by lujiaolan on 16/8/18.
 */
$(document).ready(function () {
    $("div:eq(0)").mouseenter(handleMouseEnter).mouseleave(handleMouseLeave);
});
function handleMouseEnter() {
    $(this).animate({
        width : "+=100px"
    },500);
}
function handleMouseLeave() {
    $(this).animate({
        width : "-=100px"
    },500);
}